package com.sims.service;

import java.util.List;

import com.sims.eo.SimsTeacher;

public interface ITeacherService {
	// 通过工号获取教师对象
	SimsTeacher getSimsTeacherbyTeacherNumber(String teacherNumber);

	// 获取所有账号
	List<SimsTeacher> getAllSimsTeacher();

	// 通过学号获取总记录数
	long getRowCountByTeacherNumber(String teacherNumber);

	// 通过ID删除账号
	boolean deletSimsTeacherById(Long id);

	// 通过ID获取账号
	SimsTeacher getSimsTeacherById(Long id);

	long createTeacher(SimsTeacher teacher);

	// 更新数据
	boolean updateSimsTeacher(SimsTeacher teacher);

	// -----------分页获取数据---------------
	// 获取账号列表分页获取
	List<SimsTeacher> getAllSimsTeacher(int pageNo, int pageSize);//

	// 获得总记录数
	long getRowCount();
}
